//
//  ParticleEmitter.h
//  GLSprite
//
//  Created by Daniel Polak on 7/19/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Vector.h"
#import <UIKit/UIKit.h>
#import <OpenGLES/EAGL.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>

@interface ParticleEmitter : NSObject
{
	int		m_nMaxParticles;	//Maximum number of particles allowed
	float	m_fSpawnRate;		//Rate at which particles are created
	CGPoint	m_pLocation;		//X,Y Coordinate of the emiiter
	Vector*	m_vParticles;		//List of particles the emitter Controls
	BOOL	m_bComplete;		//If the emitter has stopped and all particles are dead
	GLuint m_Textures;		//Possible textures for the particles
}

-(void)Update:(float)fTime;
-(void)Create:(int)MaxParticles:(float)SpawnRate:(CGPoint)Location;
-(void)Stop;


@end
